<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="步骤4：注册数据库">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="zh-cn_topic_0000001792389212.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
  <meta name="DC.Publisher" content="20240320">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="ZH-CN_TOPIC_0000001792549004">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>步骤4：注册数据库</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="ZH-CN_TOPIC_0000001792549004"></a><a name="ZH-CN_TOPIC_0000001792549004"></a>
  <h1 class="topictitle1">步骤4：注册数据库</h1>
  <div>
   <p>执行数据库备份恢复前，需要将数据库注册至<span>本产品</span>。</p>
   <div class="section">
    <h4 class="sectiontitle">前提条件</h4>
    <p id="ZH-CN_TOPIC_0000001792549004__zh-cn_topic_0000001839188297_p138022121518">请确保ProtectAgent的安装用户能够正常的通过<strong id="ZH-CN_TOPIC_0000001792549004__zh-cn_topic_0000001839188297_b7716401510">su - oracle</strong>命令切换到Oracle的安装用户。如果安装了grid组件，请确保能够通过<strong id="ZH-CN_TOPIC_0000001792549004__zh-cn_topic_0000001839188297_b923919186527">su - grid</strong>命令切换到<strong id="ZH-CN_TOPIC_0000001792549004__zh-cn_topic_0000001839188297_b15797182405211">grid</strong>用户。</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">操作步骤</h4>
    <ol>
     <li><span>选择<span class="uicontrol" id="ZH-CN_TOPIC_0000001792549004__zh-cn_topic_0000001839142377_uicontrol49641842919">“<span id="ZH-CN_TOPIC_0000001792549004__zh-cn_topic_0000001839142377_text63901566195">保护</span> &gt; 数据库 &gt; Oracle”</span>。</span></li>
    </ol>
    <ol start="2">
     <li><span>选择<span class="uicontrol">“<span>数据库</span>”</span>页签，单击<span class="uicontrol">“<span>注册</span>”</span>。</span><p></p><p>相关参数说明如<a href="#ZH-CN_TOPIC_0000001792549004__table17561557152715">表1</a>所示。</p>
      <div class="tablenoborder">
       <a name="ZH-CN_TOPIC_0000001792549004__table17561557152715"></a><a name="table17561557152715"></a>
       <table cellpadding="4" cellspacing="0" summary="" id="ZH-CN_TOPIC_0000001792549004__table17561557152715" frame="border" border="1" rules="all">
        <caption>
         <b>表1 </b>注册数据库参数说明
        </caption>
        <colgroup>
         <col style="width:31.430000000000003%">
         <col style="width:68.57%">
        </colgroup>
        <thead align="left">
         <tr>
          <th align="left" class="cellrowborder" valign="top" width="31.430000000000003%" id="mcps1.3.3.3.1.2.2.2.3.1.1"><p>参数</p></th>
          <th align="left" class="cellrowborder" valign="top" width="68.57%" id="mcps1.3.3.3.1.2.2.2.3.1.2"><p>说明</p></th>
         </tr>
        </thead>
        <tbody>
         <tr>
          <td class="cellrowborder" valign="top" width="31.430000000000003%" headers="mcps1.3.3.3.1.2.2.2.3.1.1 "><p><span>类型</span></p></td>
          <td class="cellrowborder" valign="top" width="68.57%" headers="mcps1.3.3.3.1.2.2.2.3.1.2 "><p>数据库类型，选择<span class="uicontrol">“单机”</span>或<span class="uicontrol">“集群”</span>。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="31.430000000000003%" headers="mcps1.3.3.3.1.2.2.2.3.1.1 "><p><span>名称</span></p></td>
          <td class="cellrowborder" valign="top" width="68.57%" headers="mcps1.3.3.3.1.2.2.2.3.1.2 "><p>要保护的数据库名称。</p>
           <div class="p">
            该名称与生产环境的数据库名称保持一致。一般数据库的name与db_unique_name一致，当两者不一致时，请配置为db_unique_name。可通过以下SQL语句查看name与db_unique_name。
            <pre class="screen">select name,db_unique_name FROM v$database;</pre>
           </div></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="31.430000000000003%" headers="mcps1.3.3.3.1.2.2.2.3.1.1 "><p>主机/集群</p></td>
          <td class="cellrowborder" valign="top" width="68.57%" headers="mcps1.3.3.3.1.2.2.2.3.1.2 "><p>数据库所在的主机或集群。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="31.430000000000003%" headers="mcps1.3.3.3.1.2.2.2.3.1.1 "><p><span>数据库认证方式</span></p></td>
          <td class="cellrowborder" valign="top" width="68.57%" headers="mcps1.3.3.3.1.2.2.2.3.1.2 "><p>数据库认证方式，支持<span class="uicontrol">“数据库认证”</span>和<span class="uicontrol">“OS认证”</span>，与数据库侧的配置一致。</p> <p>查询数据库认证方式可参考<a href="zh-cn_topic_0000001792548932.html">备份前准备</a>。</p>
           <div class="note">
            <span class="notetitle"> 说明： </span>
            <div class="notebody">
             <ul>
              <li>当要备份的数据库所在的主机为Oracle ADG集群的从端，则要求数据库必须采用数据库认证方式。</li>
              <li>当在<a href="zh-cn_topic_0000001792389308.html#ZH-CN_TOPIC_0000001792389308__li164660725814">4</a>中指定多个代理主机执行备份任务时，则要求数据库必须采用数据库认证方式。</li>
             </ul>
            </div>
           </div></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="31.430000000000003%" headers="mcps1.3.3.3.1.2.2.2.3.1.1 "><p><span>数据库安装用户名</span></p></td>
          <td class="cellrowborder" valign="top" width="68.57%" headers="mcps1.3.3.3.1.2.2.2.3.1.2 "><p>安装数据库的用户，如<strong>oracle</strong>。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="31.430000000000003%" headers="mcps1.3.3.3.1.2.2.2.3.1.1 "><p><span>数据库用户名</span></p></td>
          <td class="cellrowborder" rowspan="2" valign="top" width="68.57%" headers="mcps1.3.3.3.1.2.2.2.3.1.2 "><p>当<span class="uicontrol">“数据库认证方式”</span>为<span class="uicontrol">“数据库认证”</span>时，需要配置数据库的用户名和密码。</p> <p>输入具有sysdba权限的用户。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" headers="mcps1.3.3.3.1.2.2.2.3.1.1 "><p><span>数据库密码</span></p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="31.430000000000003%" headers="mcps1.3.3.3.1.2.2.2.3.1.1 "><p><span>ASM认证</span></p></td>
          <td class="cellrowborder" valign="top" width="68.57%" headers="mcps1.3.3.3.1.2.2.2.3.1.2 "><p>如果数据库使用了ASM，则需要开启ASM认证。</p> <p>查看数据库是否使用了ASM的具体操作可参考<a href="zh-cn_topic_0000001792548932.html">备份前准备</a>。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="31.430000000000003%" headers="mcps1.3.3.3.1.2.2.2.3.1.1 "><p><span>认证方式</span></p></td>
          <td class="cellrowborder" valign="top" width="68.57%" headers="mcps1.3.3.3.1.2.2.2.3.1.2 "><p>ASM认证方式，与数据库侧的配置一致。</p> <p>查询数据库侧的ASM认证方式可参考<a href="zh-cn_topic_0000001792548932.html">备份前准备</a>。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="31.430000000000003%" headers="mcps1.3.3.3.1.2.2.2.3.1.1 "><p><span>安装用户名</span></p></td>
          <td class="cellrowborder" valign="top" width="68.57%" headers="mcps1.3.3.3.1.2.2.2.3.1.2 "><p>ASM的安装用户名，如<strong>grid</strong>。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="31.430000000000003%" headers="mcps1.3.3.3.1.2.2.2.3.1.1 "><p><span>ASM用户名</span></p></td>
          <td class="cellrowborder" rowspan="2" valign="top" width="68.57%" headers="mcps1.3.3.3.1.2.2.2.3.1.2 "><p>当认证方式为ASM认证时，需要配置该参数。输入具有sysdba权限的用户。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" headers="mcps1.3.3.3.1.2.2.2.3.1.1 "><p><span>ASM密码</span></p></td>
         </tr>
        </tbody>
       </table>
      </div> <p></p></li>
     <li><span>在“<span>存储资源</span>”区域，单击“<span>添加</span>”。存储资源参数说明如<a href="#ZH-CN_TOPIC_0000001792549004__table5692101024117">表2</a>所示。</span><p></p>
      <div class="note">
       <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
       <div class="notebody">
        <ul>
         <li>仅1.6.0及后续版本支持此功能。</li>
         <li>当Oracle数据库对接了<span style="color:#282B33;">OceanStor Dorado 6.x</span>存储设备，需使用存储层快照备份功能时，请添加存储资源。其他场景无需添加存储资源。</li>
        </ul>
       </div>
      </div>
      <div class="tablenoborder">
       <a name="ZH-CN_TOPIC_0000001792549004__table5692101024117"></a><a name="table5692101024117"></a>
       <table cellpadding="4" cellspacing="0" summary="" id="ZH-CN_TOPIC_0000001792549004__table5692101024117" frame="border" border="1" rules="all">
        <caption>
         <b>表2 </b>添加存储资源参数说明
        </caption>
        <colgroup>
         <col style="width:25.629999999999995%">
         <col style="width:74.37%">
        </colgroup>
        <thead align="left">
         <tr>
          <th align="left" class="cellrowborder" valign="top" width="25.629999999999995%" id="mcps1.3.3.3.2.2.2.2.3.1.1"><p>参数</p></th>
          <th align="left" class="cellrowborder" valign="top" width="74.37%" id="mcps1.3.3.3.2.2.2.2.3.1.2"><p>说明</p></th>
         </tr>
        </thead>
        <tbody>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.3.3.2.2.2.2.3.1.1 "><p><span>设备类型</span></p></td>
          <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.3.3.2.2.2.2.3.1.2 "><p>存储资源的类型。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.3.3.2.2.2.2.3.1.1 "><p><span>管理IP地址</span></p></td>
          <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.3.3.2.2.2.2.3.1.2 "><p><span style="color:#282B33;">支持填写存储设备的多个管理IP地址。某个管理IP地址无法访问时，系统将自动切换到其他可访问的管理IP地址。</span></p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.3.3.2.2.2.2.3.1.1 "><p><span>端口</span></p></td>
          <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.3.3.2.2.2.2.3.1.2 "><p>存储资源的访问端口，默认是8088。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.3.3.2.2.2.2.3.1.1 "><p><span>用户名</span></p></td>
          <td class="cellrowborder" rowspan="2" valign="top" width="74.37%" headers="mcps1.3.3.3.2.2.2.2.3.1.2 "><p>访问存储资源的用户名和密码。</p>
           <div class="note">
            <span class="notetitle"> 说明： </span>
            <div class="notebody">
             <p><span style="color:#282B33;">请使用管理员角色的用户，该用户具有Restful的登录方式，且已完成密码初始化，否则可能导致备份该设备下的资源失败。</span></p>
            </div>
           </div></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" headers="mcps1.3.3.3.2.2.2.2.3.1.1 "><p><span>密码</span></p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.3.3.2.2.2.2.3.1.1 "><p><span>协议</span></p></td>
          <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.3.3.2.2.2.2.3.1.2 "><p>选择Oracle数据库主机对接存储资源时使用的数据传输协议。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.3.3.2.2.2.2.3.1.1 "><p><span>校验证书</span></p></td>
          <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.3.3.2.2.2.2.3.1.2 "><p>默认开启，注册数据库时会对存储资源的证书进行校验，确保<span>本产品</span>与外部设备交互的安全性。关闭后，系统与存储设备通信可能存在安全风险，请谨慎操作。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.3.3.2.2.2.2.3.1.1 "><p><span>证书</span></p></td>
          <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.3.3.2.2.2.2.3.1.2 "><p>请导入<a href="zh-cn_topic_0000001867111253.html">步骤2：获取存储资源CA证书（适用于存储层快照备份）</a>章节中获取的存储资源的CA证书。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.3.3.2.2.2.2.3.1.1 "><p><span>吊销列表</span></p></td>
          <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.3.3.2.2.2.2.3.1.2 "><p>导入证书吊销列表后，系统将校验客户端证书是否被吊销，如果证书已被吊销，则注册存储设备失败。</p></td>
         </tr>
        </tbody>
       </table>
      </div> <p></p></li>
     <li><span>单击<span class="uicontrol">“确定”</span>。</span></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="zh-cn_topic_0000001792389212.html">备份Oracle数据库</a>
    </div>
   </div>
  </div>
 </body>
</html>